<?php

namespace Admin\Model;

use Think\Model;

/**
 * Description of AdminModel
 *
 * @author xtceetg
 */
class GameModel extends Model {

    protected $tableName = "game_list";

    public function getGameList() {
        return $this->field('id,gamename,enname')->order('id desc')->select();
    }

    public function getGameById($game_id){
        return $this->where("id='%d'",$game_id)->find();
    }
}
